package com.ruoyi.business.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 报警实时记录对象 alarmdatareal
 *
 * @author DL
 * @date 2025-07-02
 */
@TableName("alarmdatareal")
public class Alarmdatareal
{
    private static final long serialVersionUID = 1L;

    /** 主键ID,自增 */
    private Long ID;

    /** 设备ID */
    @Excel(name = "设备ID")
    @TableField("EquipmentID")
    private String EquipmentID;

    /** 报警号 */
    @Excel(name = "报警号")
    @TableField("AlarmNo")
    private Long AlarmNo;

    /** 报警信息 */
    @Excel(name = "报警信息")
    @TableField("AlarmMessage")
    private String AlarmMessage;

    /** 报警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报警时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("AlarmTime")
    private Date AlarmTime;

    /** 是否删除(0：未删除  1已删除) */
    @Excel(name = "是否删除(0：未删除  1已删除)")
    @TableField("DeleteFlag")
    private Long DeleteFlag;

    public void setID(Long ID)
    {
        this.ID = ID;
    }

    public Long getID()
    {
        return ID;
    }
    public void setEquipmentID(String EquipmentID)
    {
        this.EquipmentID = EquipmentID;
    }

    public String getEquipmentID()
    {
        return EquipmentID;
    }
    public void setAlarmNo(Long AlarmNo)
    {
        this.AlarmNo = AlarmNo;
    }

    public Long getAlarmNo()
    {
        return AlarmNo;
    }
    public void setAlarmMessage(String AlarmMessage)
    {
        this.AlarmMessage = AlarmMessage;
    }

    public String getAlarmMessage()
    {
        return AlarmMessage;
    }
    public void setAlarmTime(Date AlarmTime)
    {
        this.AlarmTime = AlarmTime;
    }

    public Date getAlarmTime()
    {
        return AlarmTime;
    }
    public void setDeleteFlag(Long DeleteFlag)
    {
        this.DeleteFlag = DeleteFlag;
    }

    public Long getDeleteFlag()
    {
        return DeleteFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("EquipmentID", getEquipmentID())
            .append("AlarmNo", getAlarmNo())
            .append("AlarmMessage", getAlarmMessage())
            .append("AlarmTime", getAlarmTime())
            .append("DeleteFlag", getDeleteFlag())
            .toString();
    }
}
